package com.gaojun;

import com.gaojun.service.IUserService;
import com.gaojun.service.StockService;
import com.gaojun.service.UserService;
import com.spring.GaoJunContextApplication;

import java.util.TreeSet;

/**
 * @author gaojun
 * @description TODO
 * @date 2022/7/3 16:36
 */
public class Test {
    public static void main(String[] args) {
        GaoJunContextApplication application = new GaoJunContextApplication(AppConfig.class);
        IUserService userService = (IUserService) application.getBean("userService");
        userService.test();
        StockService stockService = (StockService) application.getBean("stockService");
        stockService.decreaseStock();
    }
}
